<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="UTF-8">
    <title>详情</title>
    <link href="../css/bootstrap.min.css" rel="stylesheet">
</head>
<body>


<form class="form-horizontal" style="width: 2000px;margin: 100px auto">
    <div class="form-group">
        <label for="title" class="col-sm-2 control-label">标题</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="title">
        </div>
    </div>
    <div class="form-group">
        <label for="desc" class="col-sm-2 control-label">描述</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="desc">
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="col-sm-2 control-label">内容</label>
        <div class="col-sm-4">
            <textarea class="form-control" rows="3" id="content"></textarea>
        </div>
    </div>
</form>

<script src="../js/jquery-3.2.1.js"></script>
<script>
    $.ajax({
        url: "/blog/getmore",
        type: "post",
        success: function (result) {
            var blog = result.data;
            $("#title").val(blog.title);
            $("#desc").val(blog.desc);
            $("#content").val(blog.content);
        }
    })
</script>

</body>
</html>